#pragma once
#include "BaseFunByOneVar.h"

namespace Net
{

class FunByLog : public BaseFunByOneVar
{
public:
    FunByLog() : BaseFunByOneVar(FunType_E::Log_E, "Log")
    {

    }

    ~FunByLog()
    {

    }

    Value_t runFun(Value_t x) final
    {
        return std::log(x);
    }

    Value_t runDiff(Value_t x) final
    {
        return 1 / x;
    }
};

}